/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Portfolio Card */
.portfolio-card {
    background: #c9ded5;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    position: relative;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header Section */
.header-section {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #A2C2BA;
    position: relative;
}

.header-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.header-content p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInLeft 1s ease-out 0.5s both;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a8e6cf, #88d8a3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(107, 255, 188, 0.3);
    animation: bounceIn 1s ease-out 0.9s both;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(54, 171, 109, 0.5);
}

/* Sections */
.section {
    padding: 40px;
    border-bottom: 1px solid #A2C2BA(89.18% 0 -0.01);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Education Section */
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.education-card {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.education-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.education-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.education-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #e8e8e8;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Buttons */
.live-demo-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.live-demo-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.live-demo-btn:hover::before {
    width: 300px;
    height: 300px;
}

.live-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    text-align: center;
    position: relative;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-form p {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

.message-btn {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
}

/* Social Section */
.social-section {
    margin-top: 60px; /* tambah jarak dari atas */
    text-align: center;
}

.social-section h3 {
    font-size: 1.8rem; /* besarkan ukuran huruf */
    margin-bottom: 25px; /* beri jarak ke ikon */
    color: #2c3e50; /* pastikan warnanya kontras */
}



.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
}

.social-link.instagram { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
}

.social-link.discord { 
    background: #7289da; 
}

.social-link.threads { 
    background: #000; 
}

.social-link.linkedin { 
    background: #0077b5; 
}

.social-link.github { 
    background: #333; 
}

/* Animation Classes */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Desktop Responsive */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 40px;
    }

    .header-section {
        padding: 60px;
    }

    .header-content h1 {
        font-size: 3rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .section {
        padding: 60px;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .education-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
.plain-link {
    color: inherit;        /* agar warnanya mengikuti teks biasa */
    text-decoration: none; /* hilangkan garis bawah */
    cursor: pointer;       /* tetap ada cursor tangan saat hover */
    .plain-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto; /* pastikan bisa diklik */
  display: inline-block; /* pastikan punya area klik */
}

}

.plain-link:hover {
    opacity: 0.8; /* efek hover ringan kalau mau */
}   
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-section {
        padding: 30px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 30px;
    }

    .education-container,
    .projects-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Perbaikan agar link bisa diklik seluruh card dan tampil seperti teks biasa */
.education-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.education-card {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none; /* Ini penting agar tidak menghalangi klik */
}

.education-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.education-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.education-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.education-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px; /* ➕ tambahkan padding kiri-kanan */
    max-width: 100%;  /* pastikan container tidak melebar */
    box-sizing: border-box;
}

.education-card-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 500px; /* Batasi lebar maksimal tiap card */
    display: block;
}

.live-demo-btn {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
  text-decoration: none; /* penting agar tidak terlihat seperti link */
  text-align: center;
}


